// Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.
// This source file is part of the Cangjie project, licensed under Apache-2.0
// with Runtime Library Exception.
//
// See https://cangjie-lang.cn/pages/LICENSE for license information.

#ifndef CANGJIE_MIGRATOR_PACKAGE_COMPILE_INFO
#define CANGJIE_MIGRATOR_PACKAGE_COMPILE_INFO

#include <string>
#include <vector>

class PackageCompileInfo {
public:
    std::string packagePath;
    std::vector<std::string> importPath;

    PackageCompileInfo(std::string packagePath, std::vector<std::string> importPath);

    [[nodiscard]] std::string ToString() const;

    static std::optional<PackageCompileInfo> TryCreate(const std::string &line);
    static std::vector<PackageCompileInfo> TryCreate(const std::vector<std::string> &commands);
};

#endif // CANGJIE_MIGRATOR_PACKAGE_COMPILE_INFO
